@echo off
rem Param 1: oms user
rem Param 2: oms password
rem Param 3: Connection key in tnsnames.ora

if "%1" == "" goto error
if "%2" == "" goto error
if "%3" == "" goto error

sqlplus %1/%2@%3 @setup.sql %3 
goto end

:error
cls
echo.
echo Missing parameter!
echo.
echo.
echo Syntax:
echo.
echo testsetup [oms user] [oms passwort] [tnsnames.ora connection key] 
echo.
echo.

:end
pause